#include <stdio.h>
#include <stdlib.h>
int main(int argc, char const *argv[]) {
    system("chcp 65001 > nul");
    int a[4][3] = { 2,1,4,5,6,7,1,0,9,7,0,3 };
    int b[3][4], i, j;
    for (i = 0; i < 3; i++) {
        for (j = 0; j < 4; j++) {
            printf("%d ", a[i][j]);
            b[j][i] = a[i][j];
        }
        printf("\n");
    }
    printf("转置后： \n");
    for (i = 0; i < 4; i++) {
        for (j = 0; j < 3; j++) {
            printf("%d ", b[i][j]);
        }
        printf("\n");
    }
    return 0;
}
